
package com.javaweb.service;

import com.javaweb.model.User;
import com.javaweb.service.dto.PageResult;

import java.util.List;

public interface UserService {

    public User login(String username, String password) ;
    public List<User> findUserByName(String username) ;


    User queryByName(String username);

    int register(User user);

    PageResult queryUsers(User userCondition, Integer pageNum, Integer pageSize);

    void addAssignRole(String userId, List<Integer> roleIds);
}
